package com.rui.patterns.vistor;

/**
 * @author : [锐神NO.3]
 * @version : [v1.0]
 * @className : Owner
 * @createTime : [2022/2/25 14:19]
 * @description : [描述该类的功能]
 */

public class Owner implements Person {

    /**
     * 喂食宠物猫
     *
     * @param cat 宠物猫
     */
    @Override
    public void feed(Cat cat) {
        System.out.println("主人喂猫");
    }

    /**
     * 喂食宠物狗
     *
     * @param dog 宠物狗
     */
    @Override
    public void feed(Dog dog) {
        System.out.println("主人喂狗");
    }
}
